#ifndef THREADCONTROL_H
#define THREADCONTROL_H
/*
 * Header file to define our specific threading controls
 */

#include "ZSysgen.h"
#include "ZTypes.h"
#include "ZThread.h"
#include "ZInterrupt.h"

#define ENTER_CRITICAL_REGION() RZKDisablePreemption()
// An alternative would be:
////RZKEnableInterrupts(iMask);

#define EXIT_CRITICAL_REGION() RZKEnablePreemption()
// An alternative would be:
//UINTRMASK iMask = RZKDisableInterrupts();


#endif